package com.xhwy.service;

import com.xhwy.entity.Profession;
import com.xhwy.repository.ProfessionRepository;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author : TheBugMaker
 * date    ：2021-11-12 16:25
 */
@Service
@Slf4j
public class ProfessionService {

    @Autowired
    private ProfessionRepository professionRepository;

    public void addProfession(Profession profession){
        professionRepository.save(profession);
    }

}
